//
//  NSString+JSHandler.h
//  ShopMobile
//
//  Created by mac on 17/10/20.
//  Copyright © 2017年 soubao. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSUInteger, AttributedImageAttachsPosion) {
    AttributedImageAttachsPosionLeading,
    AttributedImageAttachsPosionTrding,
};

@interface NSString (JSHandler)

-(BOOL(^)(void))JS_RegularPhoneNumber;
-(BOOL(^)(void))JS_RegularNumber;
-(BOOL(^)(void))JS_RegularEmail;
-(BOOL(^)(void))JS_RegularUrl;
-(BOOL(^)(void))JS_RegularIdentityCard;
-(BOOL(^)(void))JS_RegularBankCard;
-(BOOL(^)(void))JS_RegularPrice;
-(NSString *(^)(void))JS_FormatterBankCardNum;

-(NSString *(^)(void))JS_DecodedString;
-(NSString *(^)(void))JS_Url_Dencode;

/*!
 *  中文编码处理
 */
- (NSString *)unicodeString;


/// 获取时间戳
-(NSString * (^)(NSString *format))time_dateWithFormat;
/// 获取格式化字符串
-(NSString * (^)(NSString *format))time_FormatWithDate;
// 获取date
- (NSDate *)js_time_dateWithFormatString:(NSString *)formatString;



@end
